package com.dimao.certificate_build_service.Util.asyncReadFile;

import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.json.JsonObject;

public abstract class ReaderFactory {
    public static Reader<Buffer> produceBufferReader(Vertx vertx){
        return new BufferReader(vertx);
    }

    public static Reader<JsonObject> produceJsonReader(Vertx vertx){
        return new JsonReader(vertx);
    }

    public static Reader<String> produceKeyReader(Vertx vertx){
        return new KeyReader(vertx);
    }
}
